Problem Note 55855: An extra RUN statement in a PROC DS2 program generates the error "Invalid string or buffer length"
An extra RUN statement in a PROC DS2 program generates the following error message:
ERROR: Invalid string or buffer length
To circumvent the problem, remove the extra RUN statement.
The sample code on the Full Code tab illustrates the problem.
Operating System and Release Information
SAS System | Base SAS | z/OS 64-bit | 9.4 TS1M0 | 9.4 TS1M4 |
z/OS | 9.4 TS1M0 | 9.4 TS1M4 |
Microsoft® Windows® for x64 | 9.4 TS1M0 | 9.4 TS1M4 |
Microsoft Windows 8 Enterprise x64 | 9.4 TS1M0 | 9.4 TS1M4 |
Microsoft Windows 8 Pro x64 | 9.4 TS1M0 | 9.4 TS1M4 |
Microsoft Windows 8.1 Enterprise 32-bit | 9.4 TS1M0 | 9.4 TS1M4 |
Microsoft Windows 8.1 Enterprise x64 | 9.4 TS1M0 | 9.4 TS1M4 |
Microsoft Windows 8.1 Pro 32-bit | 9.4 TS1M0 | 9.4 TS1M4 |
Microsoft Windows 8.1 Pro x64 | 9.4 TS1M0 | 9.4 TS1M4 |
Microsoft Windows 10 | 9.4 TS1M0 | 9.4 TS1M4 |
Microsoft Windows Server 2008 R2 | 9.4 TS1M0 | 9.4 TS1M4 |
Microsoft Windows Server 2008 for x64 | 9.4 TS1M0 | 9.4 TS1M4 |
Microsoft Windows Server 2012 Datacenter | 9.4 TS1M0 | 9.4 TS1M4 |
Microsoft Windows Server 2012 R2 Datacenter | 9.4 TS1M0 | 9.4 TS1M4 |
Microsoft Windows Server 2012 R2 Std | 9.4 TS1M0 | 9.4 TS1M4 |
Microsoft Windows Server 2012 Std | 9.4 TS1M0 | 9.4 TS1M4 |
Windows 7 Enterprise x64 | 9.4 TS1M0 | 9.4 TS1M4 |
Windows 7 Professional x64 | 9.4 TS1M0 | 9.4 TS1M4 |
64-bit Enabled AIX | 9.4 TS1M0 | 9.4 TS1M4 |
64-bit Enabled Solaris | 9.4 TS1M0 | 9.4 TS1M4 |
HP-UX IPF | 9.4 TS1M0 | 9.4 TS1M4 |
Linux for x64 | 9.4 TS1M0 | 9.4 TS1M4 |
Solaris for x64 | 9.4 TS1M0 | 9.4 TS1M4 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
This PROC DS2 program produces the error message "ERROR: Invalid string or buffer length".
proc ds2;
data _null_;
method init();
dcl double x;
x = 1;
end;
enddata;
run;
run;
quit;
Type: | Problem Note |
Priority: | medium |
Topic: | SAS Reference ==> Procedures ==> DS2
|
Date Modified: | 2015-06-04 10:47:15 |
Date Created: | 2015-05-21 14:14:36 |